package com.example.comp3111project;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class searchpage extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.searhpage);

		Button advsearch = (Button) findViewById(R.id.buttonadvsearch);

		advsearch.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {

				Intent newAct = new Intent();
				newAct.setClass(searchpage.this, MainActivity.class);

				startActivity(newAct);

				// searchpage.this.finish();

			}
		});

		Button login = (Button) findViewById(R.id.login);

		login.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {

				Intent newAct = new Intent();
				newAct.setClass(searchpage.this, Login.class);
				
				startActivity(newAct);
			}
		});

	}
}
